package com.example.demo.web;

import com.example.demo.pojo.Admins;
import com.example.demo.service.IAdminsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admins")
@CrossOrigin("*")
public class AdminsWeb {

    @Autowired
    private IAdminsService adminsService;

    // 登录接口
    @PostMapping("/getAdminsByCodeByPass")
    public Admins getAdminsByCodeByPass(@RequestBody Admins admins) {
        return adminsService.getAdminsByCodeByPass(admins);
    }
}
